//puts 0's on the first 5 entries on the tab and 1's on the five last
object Halftab {
    def main() : Unit = {
	println(new Half().computeHalftab(20));
    }
}

class Half {
    def computeHalftab(num : Int) : Int = {
	var boundary : Int;
	var i : Int;
	var tab : Int[];
	var half : Int;
	boundary = num;
	i = 0;
	half = boundary/4;
	tab = new Int[boundary/2];
	while( i < 10 ){
	    if(i < half)
		tab[i] = 0;
	    else
		tab[i] = 1;
	    println(tab[i]);
	    i = i + 1;
	}
	return 666;
    }
}
